package gameElements;

import constants.Constants;
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;

public class Cell {
    
    private int _dim;
    private int _x,_y;
   

    public void setDim(int _dim) {
        this._dim = _dim;
    }

    public void setX(int _x) {
        this._x = _x;
    }

    public void setY(int _y) {
        this._y = _y;
    }

    public int getX() {
        return _x;
    }

    public int getY() {
        return _y;
    }
    
    public Cell(){
        
        _dim = Constants.getDIMENSIONx();
    }
    public Cell(int x, int y){
        _x= x; _y=y;
        _dim = Constants.getDIMENSIONy();
    }
    public Cell( int dim ){
        _dim = dim;
    }

    public int getDim() {
        return _dim;
    }
    public void ondrawfill (Graphics ctx){
          ctx.fillRect(_x, _y, _dim, _dim);
    } 
    public void ondraw (Graphics ctx){
     
        ctx.drawRect(_x, _y, _dim, _dim); 
      
    }
    
    
}
